// ManualConfig.cpp : implementation file
//

#include "stdafx.h"
#include "setupconfig.h"
#include "ManualConfig.h"


// CManualConfig dialog

IMPLEMENT_DYNAMIC(CManualConfig, CDialog)

CManualConfig::CManualConfig(var config, CWnd* pParent /*=NULL*/)
	: CDialog(CManualConfig::IDD, pParent)
	, m_config(config)
	, m_path(config["PATH"].as_string().c_str())
	, m_include(config["INCLUDE"].as_string().c_str())
	, m_lib(config["LIB"].as_string().c_str())
	, m_link_exe(config["LINK"].as_string().c_str())
	, m_compile(config["COMPILE"].as_string().c_str())
	, m_mingw(config["mingw"].as_string().c_str())
{

}

CManualConfig::~CManualConfig()
{
}

void CManualConfig::DoDataExchange(CDataExchange* pDX)
{
	CDialog::DoDataExchange(pDX);
	DDX_Text(pDX, IDC_PATH, m_path);
	DDX_Text(pDX, IDC_INCLUDE, m_include);
	DDX_Text(pDX, IDC_LIB, m_lib);
	DDX_Text(pDX, IDC_LINK_EXE, m_link_exe);
	DDX_Text(pDX, IDC_COMPILE, m_compile);
	// DDX_Text(pDX, IDC_MINGW, m_mingw);
}


BEGIN_MESSAGE_MAP(CManualConfig, CDialog)
	ON_EN_CHANGE(IDC_PATH, &CManualConfig::OnEnChangePath)
END_MESSAGE_MAP()


// CManualConfig message handlers

void CManualConfig::OnEnChangePath()
{
	// TODO:  If this is a RICHEDIT control, the control will not
	// send this notification unless you override the CDialog::OnInitDialog()
	// function and call CRichEditCtrl().SetEventMask()
	// with the ENM_CHANGE flag ORed into the mask.

	// TODO:  Add your control notification handler code here
}
